/**
 * @filename Order.java
 */
package com.liupf.domain;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;

/**
 * @description 订单
 * @author shevliu
 * @email shevliu@gmail.com Jul 28, 2012 10:29:57 PM
 */
public class Order extends Model<Order> {
	public static final Order dao = new Order();

	public int getDriverCount() {
		Integer id = this.get("id");
		int count = 0;
		String sql = "select count(*) from order_job where order_id = ?";
		count = Db.queryInt(sql, id);
		return count;
	}
}
